package com.cloud.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPhoneRelationIdIsNull() {
            addCriterion("phone_relation_id is null");
            return (Criteria) this;
        }

        public Criteria andPhoneRelationIdIsNotNull() {
            addCriterion("phone_relation_id is not null");
            return (Criteria) this;
        }

        public Criteria andPhoneRelationIdEqualTo(Integer value) {
            addCriterion("phone_relation_id =", value, "phoneRelationId");
            return (Criteria) this;
        }

        public Criteria andPhoneRelationIdNotEqualTo(Integer value) {
            addCriterion("phone_relation_id <>", value, "phoneRelationId");
            return (Criteria) this;
        }

        public Criteria andPhoneRelationIdGreaterThan(Integer value) {
            addCriterion("phone_relation_id >", value, "phoneRelationId");
            return (Criteria) this;
        }

        public Criteria andPhoneRelationIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("phone_relation_id >=", value, "phoneRelationId");
            return (Criteria) this;
        }

        public Criteria andPhoneRelationIdLessThan(Integer value) {
            addCriterion("phone_relation_id <", value, "phoneRelationId");
            return (Criteria) this;
        }

        public Criteria andPhoneRelationIdLessThanOrEqualTo(Integer value) {
            addCriterion("phone_relation_id <=", value, "phoneRelationId");
            return (Criteria) this;
        }

        public Criteria andPhoneRelationIdIn(List<Integer> values) {
            addCriterion("phone_relation_id in", values, "phoneRelationId");
            return (Criteria) this;
        }

        public Criteria andPhoneRelationIdNotIn(List<Integer> values) {
            addCriterion("phone_relation_id not in", values, "phoneRelationId");
            return (Criteria) this;
        }

        public Criteria andPhoneRelationIdBetween(Integer value1, Integer value2) {
            addCriterion("phone_relation_id between", value1, value2, "phoneRelationId");
            return (Criteria) this;
        }

        public Criteria andPhoneRelationIdNotBetween(Integer value1, Integer value2) {
            addCriterion("phone_relation_id not between", value1, value2, "phoneRelationId");
            return (Criteria) this;
        }

        public Criteria andDevidIsNull() {
            addCriterion("devid is null");
            return (Criteria) this;
        }

        public Criteria andDevidIsNotNull() {
            addCriterion("devid is not null");
            return (Criteria) this;
        }

        public Criteria andDevidEqualTo(String value) {
            addCriterion("devid =", value, "devid");
            return (Criteria) this;
        }

        public Criteria andDevidNotEqualTo(String value) {
            addCriterion("devid <>", value, "devid");
            return (Criteria) this;
        }

        public Criteria andDevidGreaterThan(String value) {
            addCriterion("devid >", value, "devid");
            return (Criteria) this;
        }

        public Criteria andDevidGreaterThanOrEqualTo(String value) {
            addCriterion("devid >=", value, "devid");
            return (Criteria) this;
        }

        public Criteria andDevidLessThan(String value) {
            addCriterion("devid <", value, "devid");
            return (Criteria) this;
        }

        public Criteria andDevidLessThanOrEqualTo(String value) {
            addCriterion("devid <=", value, "devid");
            return (Criteria) this;
        }

        public Criteria andDevidLike(String value) {
            addCriterion("devid like", value, "devid");
            return (Criteria) this;
        }

        public Criteria andDevidNotLike(String value) {
            addCriterion("devid not like", value, "devid");
            return (Criteria) this;
        }

        public Criteria andDevidIn(List<String> values) {
            addCriterion("devid in", values, "devid");
            return (Criteria) this;
        }

        public Criteria andDevidNotIn(List<String> values) {
            addCriterion("devid not in", values, "devid");
            return (Criteria) this;
        }

        public Criteria andDevidBetween(String value1, String value2) {
            addCriterion("devid between", value1, value2, "devid");
            return (Criteria) this;
        }

        public Criteria andDevidNotBetween(String value1, String value2) {
            addCriterion("devid not between", value1, value2, "devid");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeIsNull() {
            addCriterion("record_start_time is null");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeIsNotNull() {
            addCriterion("record_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeEqualTo(Date value) {
            addCriterion("record_start_time =", value, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeNotEqualTo(Date value) {
            addCriterion("record_start_time <>", value, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeGreaterThan(Date value) {
            addCriterion("record_start_time >", value, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("record_start_time >=", value, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeLessThan(Date value) {
            addCriterion("record_start_time <", value, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("record_start_time <=", value, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeIn(List<Date> values) {
            addCriterion("record_start_time in", values, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeNotIn(List<Date> values) {
            addCriterion("record_start_time not in", values, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeBetween(Date value1, Date value2) {
            addCriterion("record_start_time between", value1, value2, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("record_start_time not between", value1, value2, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordEndTimeIsNull() {
            addCriterion("record_end_time is null");
            return (Criteria) this;
        }

        public Criteria andRecordEndTimeIsNotNull() {
            addCriterion("record_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andRecordEndTimeEqualTo(Date value) {
            addCriterion("record_end_time =", value, "recordEndTime");
            return (Criteria) this;
        }

        public Criteria andRecordEndTimeNotEqualTo(Date value) {
            addCriterion("record_end_time <>", value, "recordEndTime");
            return (Criteria) this;
        }

        public Criteria andRecordEndTimeGreaterThan(Date value) {
            addCriterion("record_end_time >", value, "recordEndTime");
            return (Criteria) this;
        }

        public Criteria andRecordEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("record_end_time >=", value, "recordEndTime");
            return (Criteria) this;
        }

        public Criteria andRecordEndTimeLessThan(Date value) {
            addCriterion("record_end_time <", value, "recordEndTime");
            return (Criteria) this;
        }

        public Criteria andRecordEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("record_end_time <=", value, "recordEndTime");
            return (Criteria) this;
        }

        public Criteria andRecordEndTimeIn(List<Date> values) {
            addCriterion("record_end_time in", values, "recordEndTime");
            return (Criteria) this;
        }

        public Criteria andRecordEndTimeNotIn(List<Date> values) {
            addCriterion("record_end_time not in", values, "recordEndTime");
            return (Criteria) this;
        }

        public Criteria andRecordEndTimeBetween(Date value1, Date value2) {
            addCriterion("record_end_time between", value1, value2, "recordEndTime");
            return (Criteria) this;
        }

        public Criteria andRecordEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("record_end_time not between", value1, value2, "recordEndTime");
            return (Criteria) this;
        }

        public Criteria andRecordFileIsNull() {
            addCriterion("record_file is null");
            return (Criteria) this;
        }

        public Criteria andRecordFileIsNotNull() {
            addCriterion("record_file is not null");
            return (Criteria) this;
        }

        public Criteria andRecordFileEqualTo(String value) {
            addCriterion("record_file =", value, "recordFile");
            return (Criteria) this;
        }

        public Criteria andRecordFileNotEqualTo(String value) {
            addCriterion("record_file <>", value, "recordFile");
            return (Criteria) this;
        }

        public Criteria andRecordFileGreaterThan(String value) {
            addCriterion("record_file >", value, "recordFile");
            return (Criteria) this;
        }

        public Criteria andRecordFileGreaterThanOrEqualTo(String value) {
            addCriterion("record_file >=", value, "recordFile");
            return (Criteria) this;
        }

        public Criteria andRecordFileLessThan(String value) {
            addCriterion("record_file <", value, "recordFile");
            return (Criteria) this;
        }

        public Criteria andRecordFileLessThanOrEqualTo(String value) {
            addCriterion("record_file <=", value, "recordFile");
            return (Criteria) this;
        }

        public Criteria andRecordFileLike(String value) {
            addCriterion("record_file like", value, "recordFile");
            return (Criteria) this;
        }

        public Criteria andRecordFileNotLike(String value) {
            addCriterion("record_file not like", value, "recordFile");
            return (Criteria) this;
        }

        public Criteria andRecordFileIn(List<String> values) {
            addCriterion("record_file in", values, "recordFile");
            return (Criteria) this;
        }

        public Criteria andRecordFileNotIn(List<String> values) {
            addCriterion("record_file not in", values, "recordFile");
            return (Criteria) this;
        }

        public Criteria andRecordFileBetween(String value1, String value2) {
            addCriterion("record_file between", value1, value2, "recordFile");
            return (Criteria) this;
        }

        public Criteria andRecordFileNotBetween(String value1, String value2) {
            addCriterion("record_file not between", value1, value2, "recordFile");
            return (Criteria) this;
        }

        public Criteria andRecordDescIsNull() {
            addCriterion("record_desc is null");
            return (Criteria) this;
        }

        public Criteria andRecordDescIsNotNull() {
            addCriterion("record_desc is not null");
            return (Criteria) this;
        }

        public Criteria andRecordDescEqualTo(String value) {
            addCriterion("record_desc =", value, "recordDesc");
            return (Criteria) this;
        }

        public Criteria andRecordDescNotEqualTo(String value) {
            addCriterion("record_desc <>", value, "recordDesc");
            return (Criteria) this;
        }

        public Criteria andRecordDescGreaterThan(String value) {
            addCriterion("record_desc >", value, "recordDesc");
            return (Criteria) this;
        }

        public Criteria andRecordDescGreaterThanOrEqualTo(String value) {
            addCriterion("record_desc >=", value, "recordDesc");
            return (Criteria) this;
        }

        public Criteria andRecordDescLessThan(String value) {
            addCriterion("record_desc <", value, "recordDesc");
            return (Criteria) this;
        }

        public Criteria andRecordDescLessThanOrEqualTo(String value) {
            addCriterion("record_desc <=", value, "recordDesc");
            return (Criteria) this;
        }

        public Criteria andRecordDescLike(String value) {
            addCriterion("record_desc like", value, "recordDesc");
            return (Criteria) this;
        }

        public Criteria andRecordDescNotLike(String value) {
            addCriterion("record_desc not like", value, "recordDesc");
            return (Criteria) this;
        }

        public Criteria andRecordDescIn(List<String> values) {
            addCriterion("record_desc in", values, "recordDesc");
            return (Criteria) this;
        }

        public Criteria andRecordDescNotIn(List<String> values) {
            addCriterion("record_desc not in", values, "recordDesc");
            return (Criteria) this;
        }

        public Criteria andRecordDescBetween(String value1, String value2) {
            addCriterion("record_desc between", value1, value2, "recordDesc");
            return (Criteria) this;
        }

        public Criteria andRecordDescNotBetween(String value1, String value2) {
            addCriterion("record_desc not between", value1, value2, "recordDesc");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}